#include "YetiAttack.h"

void YetiAttack::update(YetiEnemy* owner, float frameTime)
{
	SteeringOutput steering = attack.getSteering();
	owner->particle.velocity = steering.direction;

	owner->yetiAnims->playAnimation("Attack");

	owner->particle.velocity.x *= - steering.direction.x;
	owner->particle.velocity.x = -50.0f * steering.direction.x;

	if(steering.direction.x < 0) { owner->flip = true;  }
	if(steering.direction.x > 0) { owner->flip = false; }	
}